<?php
/* @var $this ProductController */
/* @var $model Product */

$this->breadcrumbs=array(
	'Products'=>array('index'),
	$model->name,
);

$this->menu=array(
	array('label'=>'List Product', 'url'=>array('index')),
	array('label'=>'Create Product', 'url'=>array('create')),
	array('label'=>'Update Product', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Product', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Product', 'url'=>array('admin')),
);
?>

<h1>View Product #<?php echo $model->id; ?></h1>

<?php $this->widget('bootstrap.widgets.BootDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		#'kind_id',
		array(
			'header'=>'Chuyên mục',
			'label'=>'Chuyên mục',
			'type'=>'raw',
			'value'=>$model->kind->name,
		),
		'url_key',
		'name',
		'title',
		'desc:html',
		'origin',
		'material',
		'cost',
		'img_id',
		array(
             'name'=>'picture',
             'encodeLabel'=>false,
             'value'=>  '<img src="http://vnexpress.net/Files/Subject/3b/bd/af/05/nhat_1.jpg" alt="alt" width="200" height="150" />',
        ),
	),
)); ?>
